﻿using Slc.Core.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Knc.Model
{
    /// <summary>
    /// 类别模型参数结构体
    /// </summary>
    public partial class Category : EntityBase
    {
        public Category()
        {
            //添加表名
            base.TableName = "TbCategory";
            EntityMap = Slc.Core.Enums.Db_DataType.Table;

            base.PrimaryKeys.Add("CateID");
            base.IdentityName = "CateID";
        }

        /// <summary>
        /// 所有字段名
        /// </summary>
        protected override void SetFieldNames()
        {
            PropertyNames = new string[] { "CateID", "CateCode", "CateName", "CateName", "Created", "CreateTime", "Remark", "PreCateId", "CreateDesc", "CateState", "ImgUrl" };
        }


        /// <summary>
        /// 数据类型
        /// </summary>
        protected override void SetFieldTypes()
        {
            Dictionary<string, string> _PropertyDataTpyes = new Dictionary<string, string>();
            _PropertyDataTpyes.Add("CateID", "string");
            _PropertyDataTpyes.Add("CateCode", "string");
            _PropertyDataTpyes.Add("CateName", "string");
            _PropertyDataTpyes.Add("Created", "string");
            _PropertyDataTpyes.Add("CreateTime", "DateTime");
            _PropertyDataTpyes.Add("Remark", "string");
            _PropertyDataTpyes.Add("PreCateId", "string");
            _PropertyDataTpyes.Add("CateDesc", "string");
            _PropertyDataTpyes.Add("CateFastLabel", "string");
            _PropertyDataTpyes.Add("ImgUrl", "string");
            PropertyDataTpyes = _PropertyDataTpyes;
        }

        #region 参数列表

        public const string CateIDField = "CateID";
        /// <summary>
        /// 类别Id
        /// </summary>
        public string CateID
        {
            get { return getProperty<string>("CateID"); }
            set { setProperty("CateID", value); }
        }

        public const string CateCodeField = "CateCode";
        /// <summary>
        /// 类别编号
        /// </summary>
        public string CateCode
        {
            get { return getProperty<string>("CateCode"); }
            set { setProperty("CateCode", value); }
        }

        public const string CateNameField = "CateName";
        /// <summary>
        /// 类别编号
        /// </summary>
        public string CateName
        {
            get { return getProperty<string>("CateName"); }
            set { setProperty("CateName", value); }
        }

        public const string CreatedField = "Created";
        /// <summary>
        /// 创建人
        /// </summary>
        public string Created
        {
            get { return getProperty<string>("Created"); }
            set { setProperty("Created", value); }
        }


        public const string CreateTimeField = "CreateTime";
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime
        {
            get { return getProperty<DateTime>("CreateTime"); }
            set { setProperty("CreateTime", value); }
        }

        public const string RemarkField = "Remark";
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            get { return getProperty<string>("Remark"); }
            set { setProperty("Remark", value); }
        }

        public const string PreCateIdField = "PreCateId";
        /// <summary>
        /// 父类Id
        /// </summary>
        public string PreCateId
        {
            get { return getProperty<string>("PreCateId"); }
            set { setProperty("PreCateId", value); }
        }


        public const string CateDescField = "CateDesc";
        /// <summary>
        ///类别描述
        /// </summary>
        public string CateDesc
        {
            get { return getProperty<string>("CateDesc"); }
            set { setProperty("CateDesc", value); }
        }

        public const string CateFastLabelField = "CateFastLabel";
        /// <summary>
        /// 类别类型
        /// </summary>
        public string CateState
        {
            get { return getProperty<string>("CateState"); }
            set { setProperty("CateState", value); }
        }

        /// <summary>
        /// 图片路径
        /// </summary>
        public string ImgUrl
        {
            get { return getProperty<string>("ImgUrl"); }
            set { setProperty("ImgUrl", value); }
        }



        #endregion
    }
}
